package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CyQuestionRequirementMapper;
import com.ruoyi.system.domain.CyQuestionRequirement;
import com.ruoyi.system.service.ICyQuestionRequirementService;
import com.ruoyi.common.core.text.Convert;

/**
 * 策义问卷调查：需求调查Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-30
 */
@Service
public class CyQuestionRequirementServiceImpl implements ICyQuestionRequirementService 
{
    @Autowired
    private CyQuestionRequirementMapper cyQuestionRequirementMapper;

    /**
     * 查询策义问卷调查：需求调查
     * 
     * @param id 策义问卷调查：需求调查主键
     * @return 策义问卷调查：需求调查
     */
    @Override
    public CyQuestionRequirement selectCyQuestionRequirementById(Long id)
    {
        return cyQuestionRequirementMapper.selectCyQuestionRequirementById(id);
    }

    /**
     * 查询策义问卷调查：需求调查列表
     * 
     * @param cyQuestionRequirement 策义问卷调查：需求调查
     * @return 策义问卷调查：需求调查
     */
    @Override
    public List<CyQuestionRequirement> selectCyQuestionRequirementList(CyQuestionRequirement cyQuestionRequirement)
    {
        return cyQuestionRequirementMapper.selectCyQuestionRequirementList(cyQuestionRequirement);
    }

    /**
     * 新增策义问卷调查：需求调查
     * 
     * @param cyQuestionRequirement 策义问卷调查：需求调查
     * @return 结果
     */
    @Override
    public int insertCyQuestionRequirement(CyQuestionRequirement cyQuestionRequirement)
    {
        return cyQuestionRequirementMapper.insertCyQuestionRequirement(cyQuestionRequirement);
    }

    /**
     * 修改策义问卷调查：需求调查
     * 
     * @param cyQuestionRequirement 策义问卷调查：需求调查
     * @return 结果
     */
    @Override
    public int updateCyQuestionRequirement(CyQuestionRequirement cyQuestionRequirement)
    {
        return cyQuestionRequirementMapper.updateCyQuestionRequirement(cyQuestionRequirement);
    }

    /**
     * 批量删除策义问卷调查：需求调查
     * 
     * @param ids 需要删除的策义问卷调查：需求调查主键
     * @return 结果
     */
    @Override
    public int deleteCyQuestionRequirementByIds(String ids)
    {
        return cyQuestionRequirementMapper.deleteCyQuestionRequirementByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除策义问卷调查：需求调查信息
     * 
     * @param id 策义问卷调查：需求调查主键
     * @return 结果
     */
    @Override
    public int deleteCyQuestionRequirementById(Long id)
    {
        return cyQuestionRequirementMapper.deleteCyQuestionRequirementById(id);
    }
}
